import request from '@/api/request'

// 专业技能相关接口
// 查询专业技能列表
export const getProfessionalSkillList = params => {
	return request.get('/business/resumeProfessionalSkill/list',  params )
}

// 获取专业技能详细信息
export const getProfessionalSkillDetail = id => {
	return request.get(`/business/resumeProfessionalSkill/${id}`)
}

// 新增专业技能
export const addProfessionalSkill = data => {
	return request.post('/business/resumeProfessionalSkill', data)
}

// 修改专业技能
export const updateProfessionalSkill = data => {
	return request.put('/business/resumeProfessionalSkill', data)
}

// 删除专业技能
export const deleteProfessionalSkill = id => {
	return request.delete(`/business/resumeProfessionalSkill/${id}`)
}

// 资格证书相关接口
// 查询资格证书列表
export const getQualificationCertificateList = params => {
	return request.get('/business/resumeQualificationCertificate/list',  params )
}

// 获取资格证书详细信息
export const getQualificationCertificateDetail = id => {
	return request.get(`/business/resumeQualificationCertificate/${id}`)
}

// 新增资格证书
export const addQualificationCertificate = data => {
	return request.post('/business/resumeQualificationCertificate', data)
}

// 修改资格证书
export const updateQualificationCertificate = data => {
	return request.put('/business/resumeQualificationCertificate', data)
}

// 删除资格证书
export const deleteQualificationCertificate = id => {
	return request.delete(`/business/resumeQualificationCertificate/${id}`)
}

/**
 * 根据求职岗位生成资格证书
 * GET /business/jobQualificationCertificate/generate
 * 接口ID：294735759
 */
export const generateQualificationCertificate = (params) => {
	return request.get('/business/jobQualificationCertificate/generate',  params )
}

/**
 * 根据求职岗位生成专业技能
 * GET /business/resumeJobProfessionalSkills/generate
 * 接口ID：294593152
 */
export const generateProfessionalSkills = (params) => {
	return request.get('/business/resumeJobProfessionalSkills/generate',  params )
} 